package 数据结构.泛型类;

public class GenericMethods {
    //泛型方法
    public <T> void printArray(T[] array){
        for(T ele : array){
            System.out.print(ele);
        }
        System.out.println();
    }
}
